/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh; /* 视口高度 */
    flex-direction: column;
    font-family: "Times New Roman", Times, serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    background-color: #f4f4f4;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-weight:bolder;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 20px;
    margin-top: 20px;
}

.left-panel, .right-panel {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input[type="file"] {
    margin-bottom: 20px;
}

button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

img#preview {
    width: 100%;
    max-width: 400px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

#result {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    min-height: 100px;
}

#response-time {
    margin-bottom: 20px;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
}

footer {
    padding: 20px;
    background-color: #f0f0f0; /* 浅灰色背景 */
    text-align: center; /* 文本居中 */
    border-top: 1px solid #e0e0e0; /* 顶部边框线 */
}

footer p {
    margin: 10px 0; /* 段落间距 */
    color: #666; /* 深灰色文本 */
}

footer a {
    color: #007bff; /* 链接颜色 */
    text-decoration: none;
}

footer a:hover {
    text-decoration:underline; /* 鼠标悬停时的效果 */
}